let component = {
  properties: {
    goodsList: {
      type: Array,
      value: []
    },
    helpGoods: {
      type: Object,
      value: {}
    }
  },
  methods: {
    intGoodDetail (e) {
      this.triggerEvent('goToDetail', e.currentTarget.dataset.id)
    },
    discount (e) {
      this.triggerEvent('discount', { index: e.currentTarget.dataset.index })
    },
    count (e) {
      this.triggerEvent('add', { index: e.currentTarget.dataset.index })
    }
  }
}
Component(component)
